package com.hpe.vo;

import java.text.DecimalFormat;

/**
 * @Author:TangWenhao
 * @Description: 抽离平时成绩VO类
 * @Date:11:53 2017/11/12
 */
public class UsualVo {
    private int sId,examId,classId,status;
    private String stuName,className,courseName,testName;
    private Double scoreM;

    public int getsId() {
        return sId;
    }

    public void setsId(int sId) {
        this.sId = sId;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public Double getScoreM() {
        if(scoreM==null){
            return scoreM;
        }else {
            DecimalFormat df = new DecimalFormat("#0.0");
            return Double.parseDouble(df.format(scoreM));
        }
    }

    public void setScoreM(Double scoreM) {
        this.scoreM = scoreM;
    }
}
